package she_ji_mo_shi.gong_chang.model.chart;

public class Chart {
    private String type;
    public Chart(double[][] data, String type) {
        this.type = type;
        if ("Histogram".equals(type)) {
            System.out.println("Do Histogram init");
        }
        else if ("Pie".equals(type)) {
            System.out.println("Do Pie init");
        } else if ("Bar".equals(type)) {
            System.out.println("Do Bar init");
            
        }
        else {
            System.out.println("Do xxx init");
        }

    }
    public void display() {
        if ("Histogram".equals(type)) {
            System.out.println("Do Histogram display");
        }
        else if ("Pie".equals(type)) {
            System.out.println("Do Pie display");
        } else if ("Bar".equals(type)) {
            System.out.println("Do Bar display");

        }
        else {
            System.out.println("Do xxx display");
        }
    }
}
